/*******************************************************************************
  \file ZAppSiIdentifiers.h

  \brief Library identifiers

  \author
    Atmel Corporation: http://www.atmel.com \n
    Support email: avr@atmel.com

  Copyright (c) 2008-2012, Atmel Corporation. All rights reserved.
  Licensed under Atmel's Limited License Agreement (BitCloudTM).

  History:
    19/08/09 A. Kostyukov - Created
*******************************************************************************/
//Command IDs
#ifndef ZAPPSIIDENTIFIERS_H_
#define ZAPPSIIDENTIFIERS_H_

typedef enum
{
// 0x00
  R_SYS_DEBUG_INFORMATION            = 0x01,
  R_SYS_USART_NO_BUFFERS             = 0x02,
  R_MAC_BAN_REQUEST                  = 0x03,
  R_MAC_BAN_CONFIRM                  = 0x04,
  R_MAC_MCPS_DATA_REQUEST            = 0x05,
  R_MAC_MCPS_DATA_CONFIRM            = 0x06,
  R_MAC_BAN_ALL_REQUEST              = 0x07,
  R_MAC_BAN_ALL_CONFIRM              = 0x08,

  R_HAL_START_APP_TIMER_REQ          = 0x09,
  R_HAL_START_APP_TIMER_FIRED        = 0x0A,

  R_SYS_EVENT_MGMT_REQUEST           = 0x0B,
  R_SYS_EVENT_NOTIFY                 = 0x0C,

/*0x0d
  0x0e*/
  R_SYS_UNSUPPORTED_COMMAND          = 0x0F,
  R_SYS_RESET_REQUEST                = 0x10,
  R_SYS_RESET_CONFIRM                = 0x11,
  R_SYS_SET_REQUEST                  = 0x12,
  R_SYS_SET_CONFIRM                  = 0x13,
  R_SYS_GET_REQUEST                  = 0x14,
  R_SYS_GET_CONFIRM                  = 0x15,
  R_SYS_START_REQUEST                = 0x16,
  R_SYS_START_CONFIRM                = 0x17,

  R_ZDO_MGMT_NWK_UPDATE_REQUEST      = 0x18,
  R_ZDO_MGMT_NWK_UPDATE_CONFIRM      = 0x19,
  R_ZDO_SET_TX_POWER_REQUEST         = 0x1a,
  R_ZDO_SET_TX_POWER_CONFIRM         = 0x1b,
// 0x1c, 0x1d = 2
  R_ZDP_MGMT_CACHE_REQUEST           = 0x1e,
  R_ZDP_MGMT_CACHE_CONFIRM           = 0x1f,
  R_ZDP_SYSTEM_DISCOVERY_REQUEST     = 0x20,
  R_ZDP_SYSTEM_DISCOVERY_CONFIRM     = 0x21,
  R_ZDP_DISCOVERY_STORE_REQUEST      = 0x22,
  R_ZDP_DISCOVERY_STORE_CONFIRM      = 0x23,
  R_ZDP_NODE_DESC_STORE_REQUEST      = 0x24,
  R_ZDP_NODE_DESC_STORE_CONFIRM      = 0x25,
  R_ZDP_POWER_DESC_STORE_REQUEST     = 0x26,
  R_ZDP_POWER_DESC_STORE_CONFIRM     = 0x27,
  R_ZDP_ACTIVE_EP_STORE_REQUEST      = 0x28,
  R_ZDP_ACTIVE_EP_STORE_CONFIRM      = 0x29,
  R_ZDP_SIMPLE_DESC_STORE_REQUEST    = 0x2a,
  R_ZDP_SIMPLE_DESC_STORE_CONFIRM    = 0x2b,
  R_ZDP_REMOVE_NODE_CACHE_REQUEST    = 0x2c,
  R_ZDP_REMOVE_NODE_CACHE_CONFIRM    = 0x2d,
  R_ZDP_FIND_NODE_CACHE_REQUEST      = 0x2e,
  R_ZDP_FIND_NODE_CACHE_CONFIRM      = 0x2f,
  R_ZDP_BIND_REGISTER_REQUEST        = 0x30,
  R_ZDP_BIND_REGISTER_CONFIRM        = 0x31,
  R_ZDP_REPLACE_DEVICE_REQUEST       = 0x32,
  R_ZDP_REPLACE_DEVICE_CONFIRM       = 0x33,
  R_ZDP_STORE_BKUP_BIND_ENTRY_REQUEST  = 0x34,
  R_ZDP_STORE_BKUP_BIND_ENTRY_CONFIRM  = 0x35,
  R_ZDP_REMOVE_BKUP_BIND_ENTRY_REQUEST = 0x36,
  R_ZDP_REMOVE_BKUP_BIND_ENTRY_CONFIRM = 0x37,
  R_ZDP_BACKUP_BIND_TABLE_REQUEST    = 0x38,
  R_ZDP_BACKUP_BIND_TABLE_CONFIRM    = 0x39,
  R_ZDP_RECOVER_BIND_TABLE_REQUEST   = 0x3a,
  R_ZDP_RECOVER_BIND_TABLE_CONFIRM   = 0x3b,
  R_ZDP_BACKUP_SOURCE_BIND_REQUEST   = 0x3c,
  R_ZDP_BACKUP_SOURCE_BIND_CONFIRM   = 0x3d,
  R_ZDP_RECOVER_SOURCE_BIND_REQUEST  = 0x3e,
  R_ZDP_RECOVER_SOURCE_BIND_CONFIRM  = 0x3f,

  // MAC IDs are used for ZCL for now
  R_ZCL_START_REQUEST                = 0x40,
  R_ZCL_START_CONFIRM                = 0x41,
  R_ZCL_ATTRIBUTE_REQUEST            = 0x42,
  R_ZCL_ATTRIBUTE_RESPONSE           = 0x43,
  R_ZCL_COMMAND_REQUEST              = 0x44,
  R_ZCL_COMMAND_CONFIRM              = 0x45,
  R_ZCL_COMMAND_INDICATION           = 0x46,
  R_ZCL_REPORT_INDICATION            = 0x47,

  R_ZCL_GET_REQUEST                  = 0x48,
  R_ZCL_GET_CONFIRM                  = 0x49,
  R_ZCL_SET_CLUSTER_SECURITY_REQUEST = 0x4a,
  R_ZCL_SET_CLUSTER_SECURITY_CONFIRM = 0x4b,
/*0x4c
  0x4d
  0x4e
  0x4f*/
  R_ZCL_SET_REQUEST                  = 0x50,
  R_ZCL_SET_CONFIRM                  = 0x51,
  R_ZCL_START_SECURITY_REQUEST       = 0x52,
  R_ZCL_START_SECURITY_CONFIRM       = 0x53,
  R_ZCL_ATTRIBUTE_VALUE              = 0x54,
  R_ZCL_ATTRIBUTE_VALUE_CONFIRM      = 0x55,
  R_KEEP_NEXT_FRAME                  = 0x56,
  R_KEEP_NEXT_FRAME_CONF             = 0x57,
  R_ZCL_ATTRIBUTE_EVENT_IND          = 0x58,
  R_INTRP_DATA_REQ                   = 0x59,
  R_INTRP_DATA_CONF                  = 0x5A,
  R_INTRP_DATA_IND                   = 0x5B,

  R_APSME_RESET_REQ                  = 0x5C,
  R_APSME_RESET_CONF                 = 0x5D,
  R_APSME_START_REQ                  = 0x5E,
  R_APSME_START_CONF                 = 0x5F,

/* MAC IDs */
/*
  R_MAC_MCPS_DATA_INDICATION         = 0x42,
  R_MAC_MCPS_PURGE_REQUEST           = 0x43,
  R_MAC_MCPS_PURGE_CONFIRM           = 0x44,
  R_MAC_MLME_ASSOCIATE_REQUEST       = 0x45,
  R_MAC_MLME_ASSOCIATE_CONFIRM       = 0x46,
  R_MAC_MLME_ASSOCIATE_INDICATION    = 0x47,
  R_MAC_MLME_ASSOCIATE_RESPONSE      = 0x48,
  R_MAC_MLME_DISASSOCIATE_REQUEST    = 0x49,
  R_MAC_MLME_DISASSOCIATE_CONFIRM    = 0x4a,
  R_MAC_MLME_DISASSOCIATE_INDICATION = 0x4b,
  R_MAC_MLME_BEACON_NOTIFY_INDICATION = 0x4c,
  R_MAC_MLME_GET_REQUEST             = 0x4d,
  R_MAC_MLME_GET_CONFIRM             = 0x4e,
  R_MAC_MLME_GTS_REQUEST             = 0x4f,
  R_MAC_MLME_GTS_CONFIRM             = 0x50,
  R_MAC_MLME_GTS_INDICATION          = 0x51,
  R_MAC_MLME_ORPHAN_INDICATION       = 0x52,
  R_MAC_MLME_ORPHAN_RESPONSE         = 0x53,
  R_MAC_MLME_RESET_REQUEST           = 0x54,
  R_MAC_MLME_RESET_CONFIRM           = 0x55,
  R_MAC_MLME_RX_ENABLE_REQUEST       = 0x56,
  R_MAC_MLME_RX_ENABLE_CONFIRM       = 0x57,
  R_MAC_MLME_SCAN_REQUEST            = 0x58,
  R_MAC_MLME_SCAN_CONFIRM            = 0x59,
  R_MAC_MLME_COMM_STATUS_INDICATION  = 0x5a,
  R_MAC_MLME_SET_REQUEST             = 0x5b,
  R_MAC_MLME_SET_CONFIRM             = 0x5c,
  R_MAC_MLME_START_REQUEST           = 0x5d,
  R_MAC_MLME_START_CONFIRM           = 0x5e,
  R_MAC_MLME_SYNC_REQUEST            = 0x5f,
  R_MAC_MLME_SYNC_LOSS_INDICATION    = 0x60,
  R_MAC_MLME_POLL_REQUEST            = 0x61,
  R_MAC_MLME_POLL_CONFIRM            = 0x62,
*/

  R_AUX_GET_LINK_KEY_HASH_REQUEST    = 0x61,
  R_AUX_GET_LINK_KEY_HASH_CONFIRM    = 0x62,

  R_SYS_SET_DEVICE_TYPE_REQUEST      = 0x63,
  R_SYS_SET_DEVICE_TYPE_CONFIRM      = 0x64,
  R_ZDO_SLEEP_REQUEST                = 0x65,
  R_ZDO_SLEEP_CONFIRM                = 0x66,
  R_ZDO_WAKEUP_INDICATION            = 0x67,
  R_ZDO_MGMT_NWK_UPDATE_NOTIFY       = 0x68,
  R_ZDO_TC_SWAPOUT_REQUEST           = 0x69,
  R_ZDO_TC_SWAPOUT_CONFIRM           = 0x6a,
  R_NWK_SET_SHORT_ADDRESS_REQUEST    = 0x6b,
  R_NWK_PROFILER_REQUEST             = 0x6c,
  R_NWK_PROFILER_CONFIRM             = 0x6d,
  R_NWK_ADDR_RESOLV_REQUEST          = 0x6e,
  R_NWK_ADDR_RESOLV_CONFIRM          = 0x6f,
  R_NLDE_DATA_REQUEST                = 0x70,
  R_NLDE_DATA_CONFIRM                = 0x71,
  R_NLDE_DATA_INDICATION             = 0x72,
  R_NLME_START_ROUTER_REQUEST        = 0x73,
  R_NLME_START_ROUTER_CONFIRM        = 0x74,
  R_NLME_PERMIT_JOINING_REQUEST      = 0x75,
  R_NLME_JOIN_REQUEST                = 0x76,
  R_NLME_JOIN_CONFIRM                = 0x77,
  R_NLME_JOIN_INDICATION             = 0x78,
  R_NLME_LEAVE_REQUEST               = 0x79,
  R_NLME_LEAVE_CONFIRM               = 0x7a,
  R_NLME_LEAVE_INDICATION            = 0x7b,
  R_NWK_SET_ROUTE_FAIL_ORDER_REQUEST = 0x7c,
  R_NLME_RESET_REQUEST               = 0x7d,
  R_NLME_RESET_CONFIRM               = 0x7e,
  R_NLME_DIRECT_JOIN_REQUEST         = 0x7f,
  R_NLME_DIRECT_JOIN_CONFIRM         = 0x80,
  R_NWK_SET_ROUTE_FAIL_ORDER_CONFIRM = 0x81,
  R_NLME_GET_REQUEST                 = 0x82,
  R_NLME_GET_CONFIRM                 = 0x83,
  R_NLME_SET_REQUEST                 = 0x84,
  R_NLME_SET_CONFIRM                 = 0x85,
  R_NLME_NETWORK_DISCOVERY_REQUEST   = 0x86,
  R_NLME_NETWORK_DISCOVERY_CONFIRM   = 0x87,
  R_NLME_NETWORK_FORMATION_REQUEST   = 0x88,
  R_NLME_NETWORK_FORMATION_CONFIRM   = 0x89,
  R_NLME_PERMIT_JOINING_CONFIRM      = 0x8a,
  R_NLME_SYNC_REQUEST                = 0x8b,
  R_NLME_SYNC_CONFIRM                = 0x8c,
  R_NLME_SYNC_INDICATION             = 0x8d,
  R_NWK_NEXT_HOP_REQUEST             = 0x8e,
  R_NWK_NEXT_HOP_CONFIRM             = 0x8f,
  R_NLME_ROUTE_DISCOVERY_REQUEST     = 0x90,
  R_NLME_ROUTE_DISCOVERY_CONFIRM     = 0x91,
  R_NLME_ROUTE_ERROR_INDICATION      = 0x92,
  R_OTAU_CLIENT_START                = 0x93,
  R_ZCL_DEFAULT_RESPONSE             = 0x94,
  R_NWK_GET_OUT_SEC_COUNTER_REQUEST  = 0x95,
  R_NWK_GET_OUT_SEC_COUNTER_CONFIRM  = 0x96,
  R_NWK_SET_FAST_ROUTE_DISCOVERY_REQUEST = 0x97,
  R_NWK_SET_FAST_ROUTE_DISCOVERY_CONFIRM = 0x98,
/*
  0x99
  0x9a
*/
  R_APS_UPDATE_SECURITY_POLICY_REQUEST = 0x9b,
  R_APS_UPDATE_SECURITY_POLICY_CONFIRM = 0x9c,
  R_APS_GET_OUT_SEC_COUNTER_REQUEST  = 0x9D,
  R_APS_GET_OUT_SEC_COUNTER_CONFIRM  = 0x9E,
  R_APSME_REMOVE_DEVICE_CONFIRM      = 0x9F,
  R_APSDE_DATA_REQUEST               = 0xa0,
  R_APSDE_DATA_CONFIRM               = 0xa1,
  R_APSDE_DATA_INDICATION            = 0xa2,
  R_APSME_BIND_REQUEST               = 0xa3,
  R_APSME_BIND_CONFIRM               = 0xa4,
  R_APSME_UNBIND_REQUEST             = 0xa5,
  R_APSME_UNBIND_CONFIRM             = 0xa6,
  R_APSME_GET_REQUEST                = 0xa7,
  R_APSME_GET_CONFIRM                = 0xa8,
  R_APSME_SET_REQUEST                = 0xa9,
  R_APSME_SET_CONFIRM                = 0xaa,
  R_APSME_ADD_GROUP_REQUEST          = 0xab,
  R_APSME_ADD_GROUP_CONFIRM          = 0xac,
  R_APSME_REMOVE_GROUP_REQUEST       = 0xad,
  R_APSME_REMOVE_GROUP_CONFIRM       = 0xae,
  R_APSME_REMOVE_ALL_GROUPS_REQUEST  = 0xaf,
  R_APSME_ESTABLISH_KEY_REQUEST      = 0xb0,
  R_APSME_ESTABLISH_KEY_CONFIRM      = 0xb1,
  R_APSME_ESTABLISH_KEY_INDICATION   = 0xb2,
  R_APSME_ESTABLISH_KEY_RESPONSE     = 0xb3,
  R_APSME_TRANSPORT_KEY_REQUEST      = 0xb4,
  R_APSME_TRANSPORT_KEY_CONFIRM      = 0xb5,
  R_APSME_UPDATE_DEVICE_REQUEST      = 0xb6,
  R_APSME_UPDATE_DEVICE_INDICATION   = 0xb7,
  R_APSME_REMOVE_DEVICE_REQUEST      = 0xb8,
  R_APSME_REMOVE_DEVICE_INDICATION   = 0xb9,
  R_APSME_REQUEST_KEY_REQUEST        = 0xba,
  R_APSME_REQUEST_KEY_INDICATION     = 0xbb,
  R_APSME_SWITCH_KEY_REQUEST         = 0xbc,
  R_APSME_SWITCH_KEY_INDICATION      = 0xbd,
  R_APSME_REMOVE_ALL_GROUPS_CONFIRM  = 0xbe,
  R_APSME_SWITCH_KEY_CONFIRM         = 0xbf,
  R_ZDO_NWK_ADDR_REQUEST             = 0xc0,
  R_ZDO_NWK_ADDR_CONFIRM             = 0xc1,
  R_ZDO_IEEE_ADDR_REQUEST            = 0xc2,
  R_ZDO_IEEE_ADDR_CONFIRM            = 0xc3,
  R_ZDO_NODE_DESC_REQUEST            = 0xc4,
  R_ZDO_NODE_DESC_CONFIRM            = 0xc5,
  R_ZDO_POWER_DESC_REQUEST           = 0xc6,
  R_ZDO_POWER_DESC_CONFIRM           = 0xc7,
  R_ZDO_SIMPLE_DESC_REQUEST          = 0xc8,
  R_ZDO_SIMPLE_DESC_CONFIRM          = 0xc9,
  R_ZDO_ACTIVE_EP_DESC_REQUEST       = 0xca,
  R_ZDO_ACTIVE_EP_DESC_CONFIRM       = 0xcb,
  R_ZDO_MATCH_DESC_REQUEST           = 0xcc,
  R_ZDO_MATCH_DESC_CONFIRM           = 0xcd,
  R_ZDO_COMPLEX_DESC_REQUEST         = 0xce,
  R_ZDO_COMPLEX_DESC_CONFIRM         = 0xcf,
  R_ZDO_USER_DESC_REQUEST            = 0xd0,
  R_ZDO_USER_DESC_CONFIRM            = 0xd1,
  R_ZDO_DISCOVERY_REGISTER_REQUEST   = 0xd2,
  R_ZDO_DISCOVERY_REGISTER_CONFIRM   = 0xd3,
  R_ZDO_END_DEVICE_ANNCE_REQUEST     = 0xd4,
  R_ZDO_END_DEVICE_ANNCE_CONFIRM     = 0xd5,
  R_ZDO_END_DEVICE_BIND_REQUEST      = 0xd6,
  R_ZDO_END_DEVICE_BIND_RESPONSE     = 0xd7,
  R_ZDO_BIND_REQUEST                 = 0xd8,
  R_ZDO_BIND_CONFIRM                 = 0xd9,
  R_ZDO_UNBIND_REQUEST               = 0xda,
  R_ZDO_UNBIND_CONFIRM               = 0xdb,
  R_ZDO_MGMT_NWK_DISC_REQUEST        = 0xdc,
  R_ZDO_MGMT_NWK_DISC_CONFIRM        = 0xdd,
  R_ZDO_MGMT_LQI_REQUEST             = 0xde,
  R_ZDO_MGMT_LQI_CONFIRM             = 0xdf,
  R_ZDO_MGMT_RTG_REQUEST             = 0xe0,
  R_ZDO_MGMT_RTG_CONFIRM             = 0xe1,
  R_ZDO_MGMT_BIND_REQUEST            = 0xe2,
  R_ZDO_MGMT_BIND_RESPONSE           = 0xe3,
  R_ZDO_MGMT_LEAVE_REQUEST           = 0xe4,
  R_ZDO_MGMT_LEAVE_CONFIRM           = 0xe5,
  R_ZDO_MGMT_DIRECT_JOIN_REQUEST     = 0xe6,
  R_ZDO_MGMT_DIRECT_JOIN_CONFIRM     = 0xe7,
  R_ZDO_USER_DESC_SET_REQUEST        = 0xe8,
  R_ZDO_USER_DESC_SET_CONFIRM        = 0xe9,
  R_ZDO_MGMT_PERMIT_JOINING_REQUEST  = 0xea,
  R_ZDO_MGMT_PERMIT_JOINING_CONFIRM  = 0xeb,
  R_ZDO_START_SYNC_REQUEST           = 0xec,
  R_ZDO_START_SYNC_CONFIRM           = 0xed,
  R_ZDO_STOP_SYNC_REQUEST            = 0xee,
  R_ZDO_STOP_SYNC_CONFIRM            = 0xef,

  R_AF_INDIRECT_REQUEST              = 0xf0,
  R_AF_INDIRECT_CONFIRM              = 0xf1,
  R_AF_INDIRECT_INDICATION           = 0xf2,
  R_AF_DIRECT_REQUEST                = 0xf3,
  R_AF_DIRECT_CONFIRM                = 0xf4,
  R_AF_DIRECT_INDICATION             = 0xf5,
  R_APSME_REQUEST_KEY_CONFIRM        = 0xf6,
  R_AF_RESERVED_2                    = 0xf7,
  R_AF_RESERVED_3                    = 0xf8,
  R_AF_GROUP_REQUEST                 = 0xf9,
  R_AF_GROUP_CONFIRM                 = 0xfa,
  R_AF_GROUP_INDICATION              = 0xfb,
  R_ZDO_GET_NEIB_AMOUNT_REQUEST      = 0xfc,
  R_ZDO_GET_NEIB_AMOUNT_CONFIRM      = 0xfd,
  R_ZDO_GET_NEIB_TABLE_REQUEST       = 0xfe,
  R_ZDO_GET_NEIB_TABLE_CONFIRM       = 0xff,
} CommandID_t;

#endif //ZAPPSIIDENTIFIERS_H_
